import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from 'react-router-dom'
import App from './App.jsx';
// import store from './components/05.Redux/Count/store'
import {Provider} from 'react-redux'

// import store from './components/05.Redux/ReactRedux/store';
// import store from './components/05.Redux/FinalCounter/store';
import store from './components/05.Redux/Multi/redux/store';

// import reportWebVitals from './reportWebVitals';

// React.StrictMode 用于检查代码是否合理
ReactDOM.render(
  <React.StrictMode>
    <BrowserRouter>
      <Provider store={store}>
        <App />
      </Provider>
    </BrowserRouter>
  </React.StrictMode>,
  document.getElementById('root')
);

// store.subscribe(()=>{
//   ReactDOM.render(
//     <React.StrictMode>
//       <BrowserRouter>
//         <App />
//       </BrowserRouter>
//     </React.StrictMode>,
//     document.getElementById('root')
//   );
// })

// 性能
// reportWebVitals();
